home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 39
/
Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso
/
Aminet
/
mus
/
misc
/
spcli.lha
/
SongPlayerCLI
/
Rexx
/
SpCLI
/
Add.rexx
next >
Wrap
OS/2 REXX Batch file
|
2000-08-23
|
619b
|
31 lines
/*
SongPlayerCLI v1.52 (by Gareth Griffiths)
E-Mail: gazchap@btinternet.com
Add.rexx - Add's a file to the playlist.
*/
IF ~SHOW('P','SONGPLAYER.1') THEN DO
ADDRESS COMMAND
SAY "Can't find ARexx port 'SONGPLAYER.1'"
EXIT
END
IF ~SHOW('P','SONGPLAYER.1') THEN DO;EXIT;END
OPTIONS RESULTS
PARSE ARG path
ADDRESS COMMAND
IF path = "" THEN DO
OPTIONS PROMPT 'Enter Filepath: '
PULL path
END
ADDRESS SONGPLAYER.1
'ADD 'path
'GET_COUNT';last=result;'SELECT 'last
'GET_TITLE';title=result
'GET_ARTIST';artist=result
'GET_SELECTED';index=result
'PLAY'
ADDRESS COMMAND
SAY 'Current File: ('index') 'artist': 'title
EXIT